
#include <BDisplay>
#include "MainWindow.h"

MainWindow::MainWindow() : BMainWindow()
{
	connect("face", &MainWindow::procFaceWidget);
}
MainWindow::MainWindow(const BString& title) : BMainWindow(title)
{
	connect("face", &MainWindow::procFaceWidget);
}
MainWindow::~MainWindow()
{

}

void MainWindow::procFaceWidget(BObject* object, const BValue& value)
{
	BDisplay* display = value;
	if (display)
	{
		_widget = display->widget();
		_display = display;
		this->addChild(_widget);
		_widget->popup();
	}
}
